package com.cx.controller;

import com.cx.rabbit.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MessageController {

    @Autowired
    Producer producer;

    @RequestMapping("/qg")
    public String qiangGou(Integer uid){
        producer.send(1);
        return "forward:/qg.jsp";
    }


}

